package com.zdp.chat.entity.mongo;

import com.anwen.mongo.annotation.ID;
import com.anwen.mongo.annotation.collection.CollectionName;
import com.anwen.mongo.enums.IdTypeEnum;
import com.zdp.chat.enums.MessageStatusEnum;
import com.zdp.chat.enums.ContextTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;


@CollectionName(value = "chat_room_message")
@Data
public class RoomMessageDoc {

    @ID(type = IdTypeEnum.ASSIGN_ID)
    private Long msgId;

    private Long roomId;

    private String sendUid;

    /**
     * @see com.zdp.chat.enums.MessageTypeEnum
     */
    private Integer msgType;

    /**
     * @see ContextTypeEnum
     */
    private Integer contextType;

    /**
     * @see MessageStatusEnum
     */
    private Integer msgStatus;

    /**
     * 引用消息id
     */
    private Long quoteMsgId;

    private String context;

    private String clazz;

    private LocalDateTime sendTime;

}
